<?php 
namespace frontend\controllers;

use yii\web\Controller;

/**
* 
*/
class IndexController extends Controller{
	
	public $layout='myindex';
	
	public function actionIndex(){
		/*$cookie = \Yii::$app->request->cookies;
        //返回一个\yii\web\Cookie对象
        $cookie_data=$cookie->getValue('user');
        if(empty($cookie_data)){
            echo "<script>alert('请先登录');location.href='?r=login/login';</script>";
        }*/
		return $this->render('index');
	}
}


 ?>